package com.qingdai.emuns;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuZiMing
 * @since 2024-01-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user__permission")
@Schema(description = "权限")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    @Schema(description = "id")
    private Integer id;

    @TableField("name")
    @Schema(description = "名字")
    private String name;

    @TableField("url")
    @Schema(description = "url")
    private String url;

    @TableField("parent_id")
    @Schema(description = "父权限id")
    private Integer parentId;

    @TableField("type")
    @Schema(description = "类型")
    private String type;

    @TableField("permit")
    @Schema(description = "许可")
    private String permit;

    @TableField("remark")
    @Schema(description = "备注")
    private String remark;
}
